package com.bsj.power.common.def.dto.tree;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author LiJiaXin
 * @version 1.0.0
 * @description TreeDTO
 * @time 2024/10/9 12:01
 */
@Data
public class TreeDTO {

    /**
     * 树id
     */
    private Integer treeId;

    /**
     * 上级id 最上级为-1
     */
    @NotNull(message = "所属上级不能为空")
    private Integer parentId;

    /**
     * 树名称
     */
    @NotBlank(message = "名称不能为空")
    private String treeName;

    /**
     * 备注
     */
    private String remark;

}
